package com.jialiang;

import com.jialiang.auto.SecurityConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author jialiang
 * @version 3.0
 */
@Slf4j
@Configuration
@ConditionalOnProperty(prefix = "op.security", name = "enable", havingValue = "true")
public class SecurityAutoConfiguration {
    public SecurityAutoConfiguration() {
        log.info("已加载op-security-spring-boot-starter认证模块");
    }

    @Configuration
    @ComponentScan(value = {"com.jialiang.filter", "com.jialiang.config","com.jialiang.dao"})
    @Import(value = {SecurityConfiguration.class})
    public class AdminSecurityConfig {

    }

}
